package com.xtkj.superclub_entity.entity.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xtkj.superclub_entity.entity.user.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author lizheqi
 * @create 2019-12-26-16:11
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@Accessors(chain = true)
@TableName("cart")
public class ProItem implements Serializable {
    @TableId(value = "pro_item_id",type = IdType.INPUT)
    private String proItemId;//商品列项编号
    private String proId;//商品编号
    @TableField(exist = false)
    private Product product;
    private String colorId;//颜色编号
    @TableField(exist = false)
    private Color color;
    private String sizeId;//尺寸编号
    @TableField(exist = false)
    private Size size;
    private String userId;//用户编号
    @TableField(exist = false)
    private User user;
    private int cnt;//该类商品的数量
}
